﻿<%--<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.TrainingsSchedules>" %>--%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.TrainingsSchedules>" %>
<%@ Import Namespace="CRM.Resourses" %>

<table>
    <tr>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Дата";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Рубрика";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Курс";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <%--<th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Город";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>--%>

    </tr>
    <tr>
        <td>
            <%:Html.DevExpress().DateEdit(settings =>
                {
                    settings.Name = "PlannedDate";
                    settings.Properties.DisplayFormatString = "D";
                    settings.Enabled = false;
                    settings.ReadOnly = true;
                    settings.Width = 120;
                }).Bind(Model.PlannedDate).GetHtml() %>
        </td>
        <td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsCourses.Rubrics.NameRu";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsCourses.Rubrics.NameRu).GetHtml()%>
        </td>
        <td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsCourses.Name";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsCourses.Name).GetHtml()%>
        </td>
        <%--<td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsPlaces.TrainingsCities.TrainingsCityName";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsPlaces.TrainingsCities.TrainingsCityName).GetHtml()%>
        </td>--%>
    </tr>
</table>
